#!/usr/bin/env bash

ShellDir=${JD_DIR:-$(cd $(dirname $0); pwd)}
[ ${JD_DIR} ] && HelpJd=jd || HelpJd=jd.sh
ScriptsDir=${ShellDir}/scripts
ConfigDir=${ShellDir}/config
FileConf=${ConfigDir}/config.sh
FileConfSample=${ShellDir}/sample/config.sh.sample
LogDir=${ShellDir}/log
ListScripts=($(cd ${ScriptsDir}; ls *.js | grep -E "j[drx]_"))
ListCookies_key=()
ListCookies_value=()
FileConf_tmp=${ConfigDir}/config.sh.tmp
#jd fruit 助力码
ListShareCodeJdFruits=(5e6d256c295a4bb08784cee56e578427 4d315891a54b439dbf6169234b542093 66980ead57154a8ba0c4d9a068ffc377 7329820313d14d6f8e69a556ec91df78 897520e909bc46b68a3b882c1ef5ffc1 8f6cb9a95bdc49d69ca72ffe75ebc6f7 135d2a6213e64c9c91d8c0f56b1074b9 4627501677284723af787e06af3a1fe7 81e6449fe3764a3f85195b272de59390)
ListShareCodeJdPets=(MTE1NDUyMjEwMDAwMDAwNDI1NTEwOTc= MTE1NDQ5MzYwMDAwMDAwNDI2MTI1NDM= MTAxODc2NTEzNTAwMDAwMDAxMTE3MDE0NQ== MTEzMzI0OTE0NTAwMDAwMDA0NTA4NjU2NQ== MTAxODc2NTEzMTAwMDAwMDAwMTA4ODQ0MQ== MTE1NDQ5OTIwMDAwMDAwNDQxMzM4NTU= MTAxODc2NTE0NzAwMDAwMDAyNTE0NTEzOQ== MTAxODc2NTEzMDAwMDAwMDAwODE3Mzg5OQ== MTAxODc2NTEzMjAwMDAwMDAyMDQ1NjAwOQ==)
ListShareCodeJdPlantBeans=(yagjfqssbej4ov23ngxwmywqw4 4npkonnsy7xi2aqdptvrb5bjgrccisgmf5il4mq uucweutef7n5bf7rl7cl2pihva 4npkonnsy7xi276imx34fd5u4bbb5tdkga3n5wi olmijoxgmjutyvxalzkmqfph6u4kproakpcbksy mlrdw3aw26j3wqevj7bgsdq2eazpibicnmg2l4a whzekhjagvnbshexrf4rggrwu4 6voohnbj7wq7nt6ugdopl4k5lm mlrdw3aw26j3xrlltw5hatjphjwzvzbcpzqmsta)
ListShareCodeJdCashs=(fxo3a-S0bv8u8w eU9Ya-W0Zaknp2qEwnMThQ Ih41bum0Y_8l-Wo)
ListShareCodeJdDreamFactorys=(bT7WP8TBYl7Zovilq7jO8w== XssabNWf8MEdoB_9MUkAlA== rmW7kHAVZSLlSAhBrLGO7g== Mo72lC_8iRwxPZz9N3bVxw== OyPgoFc41z4o4X5HXw25Kg== hKSvzWp2wB6YlOxqPZrp0g== KYB_MZGfQiwMlJrWdklhzg==)
ListShareCode_jd_jdfactorys=(T0144vxzRxYf_VffIgCjVWnYaS5kRrbA T0225KkcRxcf9gHWdh6lnfcKJwCjVWnYaS5kRrbA T015v_hxQhsf8FfUKB4CjVWnYaS5kRrbA T0225KkcRxwY91DXKU7ykvELcQCjVWnYaS5kRrbA T0225KkcRhYb_FLSI07xxvEKcQCjVWnYaS5kRrbA T0225KkcRUob9FeGdR-hlvBeIACjVWnYaS5kRrbA T01077kuGV9HvACjVWnYaS5kRrbA T0085rUuCFdNCjVWnYaS5kRrbA T0225KkcRUoRo1SBcxr0wPAPfQCjVWnYaS5kRrbA)
ListShareCode_jd_crazy_joys=(vSCTCR-WAYkajfzXOQ4DcQ== mimaIITVEU7THFhRgwpC-6t9zd5YaBeE oKVkue-6iuE5FkmK_ogAhw== 1yo5yS1oMeAATYQgoJPkPKt9zd5YaBeE K8AQOfSsNd_vBIdjFpVs6Kt9zd5YaBeE OBmeSC-QUcyfjEvG__eXZ6t9zd5YaBeE Ci8j-bKt40k= Lduv71EVK-Y= Nud-IPQSL8nHMk0CciXnGqt9zd5YaBeE)

ListShareCode_jd_sgmhs=(T0144vxzRxYf_VffIgCjVQmoaT5kRrbA T0225KkcRxcf9gHWdh6lnfcKJwCjVQmoaT5kRrbA T015v_hxQhsf8FfUKB4CjVQmoaT5kRrbA T0225KkcRxwY91DXKU7ykvELcQCjVQmoaT5kRrbA T0225KkcRhYb_FLSI07xxvEKcQCjVQmoaT5kRrbA T0225KkcRUob9FeGdR-hlvBeIACjVQmoaT5kRrbA)

ListShareCode_jd_cfds=(36990B866B960DAF0938173D66230D6138A8376543935A520147127C0F762F0A F48439DBCD8B7A6F6FBEB9F371EE82C6194059FCB12AA6C723751069EB1143A0 F409F20CBE5DFD2ACD8AEA50090F2FFE365AF9C01034FDF958DF44FD45744A98 B13701915577B99902E7FEB353A86878D4EE9D7BFF88865A4AD1A2D899F0094C E3C0A27BAF151B53D3826A77E08DE3E5C8C1FFB635868E6E6E95AEABBFE57E83 7D31AF84DD444005DB797B90F2EAA3E95D848778C29E8DA3758B9F9E147238CF)

## 导入config.sh
function Import_Conf {
  if [ -f ${FileConf} ]
  then
    . ${FileConf}
    if [ -z "${Cookie1}" ]; then
      echo -e "请先在config.sh中配置好Cookie...\n"
      exit 1
    fi
  else
    echo -e "配置文件 ${FileConf} 不存在，请先按教程配置好该文件...\n"
    exit 1
  fi
}

## 用户数量UserSum
function Count_UserSum {
  for ((i=1; i<=1000; i++)); do
    Tmp=Cookie$i
    CookieTmp=${!Tmp}
    ListCookies_key[$i]=${Tmp}
    ListCookies_value[$i]=${CookieTmp}
    [[ ${CookieTmp} ]] && UserSum=$i || break
  done
}


## 复制最新config.sh文件
function Cp_Temp_Config {
  rm -rf ${FileConf_tmp}
  cp -f ${FileConfSample} ${FileConf_tmp}
}

## 替换为已经整合好的config.sh文件
function Set_Config {
  #cp -f ${FileConf} ${FileConf}.bak
  rm -rf ${FileConf}
  cp -f ${FileConf_tmp} ${FileConf}
  rm -rf ${FileConf_tmp}
}

## 给config.sh 设置cookies
function Set_Cooies {
   pre_cookie=""
	cookie=""
   for ((m=1; m<=${UserSum}; m++)); do
     cookis_key=${ListCookies_key[$m]}
     cookie_value=${ListCookies_value[$m]}
     cookie=${cookis_key}=\""${cookie_value}\""
     grep ${cookis_key} ${FileConf_tmp} >/dev/null
   	  if [ $? -eq 0 ]; then
        sed -i "s/${cookis_key}=\""\""/${cookie}/g" ${FileConf_tmp}
     else
        sed -i "/${pre_cookie}/a${cookie}" ${FileConf_tmp}
     fi
	  	pre_cookie=${cookis_key}=\""${cookie_value}\"" 
		
  done
}

## 设置其他变量
function Set_OtherEnv {
	sed -i 's/export QYWX_KEY=""/export QYWX_KEY="a42e060d-7a6f-4814-b1e6-9d248cb428a0"/g' ${FileConf_tmp}
   sed -i 's/export QYWX_AM=""/export QYWX_AM="wwa3ecd6e7b48a78f3,oIm9CPvqYZQSqvJZf4nNC7K5UR3PlM0VaH5V-cJIZMk,@all,1000003,23joLZceb20NxzXztp1YrgpT1V4cU5mcPnHiXM4XkU7ysFcWbBmprhI25aKj2faxX"/g' ${FileConf_tmp} 
   sed -i 's/NotifyBeanSign=""/NotifyBeanSign="1"/g' ${FileConf_tmp}
   sed -i 's/AutoHelpOther=""/AutoHelpOther="true"/g' ${FileConf_tmp}
   sed -i 's/export MARKET_COIN_TO_BEANS="0"/export MARKET_COIN_TO_BEANS="1000"/g' ${FileConf_tmp}
   sed -i 's/export MONEY_TREE_SELL_FRUIT=""/export MONEY_TREE_SELL_FRUIT="true"/g' ${FileConf_tmp}
   sed -i 's/export DREAMFACTORY_FORBID_ACCOUNT=""/export DREAMFACTORY_FORBID_ACCOUNT="1\&5\&6"/g' ${FileConf_tmp}
   sed -i 's/export PURCHASE_SHOPS=""/export PURCHASE_SHOPS="true"/g' ${FileConf_tmp}
   sed -i 's/EnableExtraShell=""/EnableExtraShell="true"/g' ${FileConf_tmp}
   sed -i 's/export CFD_NOTIFY_CONTROL=""/export CFD_NOTIFY_CONTROL="true"/g' ${FileConf_tmp}
   sed -i 's/export JD_JXD_EXCHANGE=""/export JD_JXD_EXCHANGE="true"/g' ${FileConf_tmp}
  
}

## 东东农场
function Set_Sharecode_jd_fruit {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCodeJdFruits[@]};i++)) do
    	 j=$(($i+1))
       key=MyFruit$j
       #echo $key
       value=${ListShareCodeJdFruits[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
} 

## jd_pet
function Set_Sharecode_jd_pet {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCodeJdPets[@]};i++)) do
    	 j=$(($i+1))
       key=MyPet$j
       #echo $key
       value=${ListShareCodeJdPets[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}

## jd_plantBean
function Set_Sharecode_jd_plantBean {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCodeJdPlantBeans[@]};i++)) do
    	 j=$(($i+1))
       key=MyBean$j
       #echo $key
       value=${ListShareCodeJdPlantBeans[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}

## jd_cash
function Set_Sharecode_jd_cash {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCodeJdCashs[@]};i++)) do
    	 j=$(($i+1))
       key=MyCash$j
       #echo $key
       value=${ListShareCodeJdCashs[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}


## jd_dreamFactory
function Set_Sharecode_jd_dreamFactory {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCodeJdDreamFactorys[@]};i++)) do
    	 j=$(($i+1))
       key=MyDreamFactory$j
       #echo $key
       value=${ListShareCodeJdDreamFactorys[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}


## 定义jd_jdfactory互助
function Set_Sharecode_jd_jdfactory {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCode_jd_jdfactorys[@]};i++)) do
    	 j=$(($i+1))
       key=MyJdFactory$j
       #echo $key
       value=${ListShareCode_jd_jdfactorys[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}


##  定义jd_crazy_joy互助
function Set_Sharecode_jd_crazy_joy {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCode_jd_crazy_joys[@]};i++)) do
    	 j=$(($i+1))
       key=MyJoy$j
       #echo $key
       value=${ListShareCode_jd_crazy_joys[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}


## 定义jd_sgmh互助
function Set_Sharecode_jd_sgmh {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCode_jd_sgmhs[@]};i++)) do
    	 j=$(($i+1))
       key=MySgmh$j
       #echo $key
       value=${ListShareCode_jd_sgmhs[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}

## 定义jd_cfd活动互助
function Set_Sharecode_jd_cfd {
	pre_sharcode=""
	sharcode=""
	for(( i=0;i<${#ListShareCode_jd_cfds[@]};i++)) do
    	 j=$(($i+1))
       key=MyCfd$j
       #echo $key
       value=${ListShareCode_jd_cfds[$i]}
       sharcode=${key}=\""${value}\""
       #echo $sharcode
       grep ${key} ${FileConf_tmp} >/dev/null
       if [ $? -eq 0 ]; then
         sed -i "s/${key}=\""\""/${sharcode}/g" ${FileConf_tmp}
       else
         sed -i "/${pre_sharcode}/a${sharcode}" ${FileConf_tmp}
       fi
       pre_sharcode=${key}=\""${value}\""
    done;
}

function Go {
	 echo "开始执行diy.sh......"
    Import_Conf
    Count_UserSum
    Cp_Temp_Config
    Set_Cooies
    Set_OtherEnv
    Set_Sharecode_jd_fruit
    Set_Sharecode_jd_pet
    Set_Sharecode_jd_plantBean
    Set_Sharecode_jd_cash
    Set_Sharecode_jd_dreamFactory
    Set_Sharecode_jd_jdfactory
    Set_Sharecode_jd_crazy_joy
    Set_Sharecode_jd_sgmh
    Set_Sharecode_jd_cfd
    #Set_Config
    echo "diy.sh执行完成......"
}

Go






#echo ${ListCookies[*]} 

#echo "开始设置cookies"
#sed -i 's/Cookie1=""/Cookie1="pt_key=AAJgKIdFADAm8h22-YBxge5suQVdWQZwvStkAxbiV5h1fRcwYeq3VId-EgGG4i8DES4toF9MCeo;pt_pin=l107868382;"/g' /jd/config/config.sh #li 
#sed -i 's/Cookie2=""/Cookie2="pt_key=AAJgKIeBADAMgWmfcFlk0433LUGXK8vPd0qRf-hoStrMlylXUA_GnGj8DUkGZ4Mon5JN9AKj7_o;pt_pin=jd_7963e1f4a900c;"/g' /jd/config/config.sh #lv
#sed -i 's/Cookie3=""/Cookie3="pt_key=AAJgKIkbADCRmhKhGxsXb6dnYbjkSfqDyPsAoif2dxEPvs_U_gWrGvZYKdaOtbUuElZguMbfobg;pt_pin=15225653384;"/g' /jd/config/config.sh #li ma
#sed -i 's/Cookie4=""/Cookie4="pt_key=AAJgQtoXADCKfE-kB6lRqJK4czOVAqO_HNXBCc5tSyR6NHAS-swazpnjlopeXKhJ8otKDz8pFPg;pt_pin=jd_7212409d66615;"/g' /jd/config/config.sh #li fu
#sed -i 's/Cookie5=""/Cookie5="pt_key=AAJgRdcNADCECVmb0KniMZWq0yySpx0JGCvR1KTN13vjgSPlTWstmJjWg1_gQUBlCyemBv5EMIw;pt_pin=jd_6829653d5b605;"/g' /jd/config/config.sh #ting
#sed -i 's/Cookie6=""/Cookie6="pt_key=AAJgRdeFADC2EShNF4FOranUHfohrU5LcZSR5vXxYzDk50PqCFu4Ec0-x4zO31bId4MUXjn66uc;pt_pin=jd_5d213ae5e27dd;"/g' /jd/config/config.sh #chongyang





#echo "开始替换......"
#echo "开始替换jd_fruit.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Fruit.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Fruit.json/g' /jd/scripts/jd_fruit.js
#echo "开始替换jd_cash.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Cash.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Cash.json/g' /jd/scripts/jd_cash.js
#sed -i 's/https:\/\/gitee.com\/Soundantony\/updateTeam\/raw\/master\/shareCodes\/jd_updateCash.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/jd_updateCash.json/g' /jd/scripts/jd_cash.js
#echo "开始替换jd_crazy_joy.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Crazy_Joy.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Crazy_Joy.json/g' /jd/scripts/jd_crazy_joy.js
#echo "开始替换jd_dreamFactory.js"
# sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Dream_Factory.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Dream_Factory.json/g' /jd/scripts/jd_dreamFactory.js
#echo "开始替换 jd_jdfactory.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Factory.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Factory.json/g' /jd/scripts/jd_jdfactory.js
#echo "开始替换 jd_jdzz.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Jdzz.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Jdzz.json/g' /jd/scripts/jd_jdzz.js
#echo "开始替换 jd_pet.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Pet.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Pet.json/g' /jd/scripts/jd_pet.js
#echo "开始替换 jd_plantBean.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Plant_Bean.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Plant_Bean.json/g' /jd/scripts/jd_plantBean.js
#echo "开始替换 jd_sgmh.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_SGMH.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_SGMH.json/g' /jd/scripts/jd_sgmh.js
#echo "开始替换 jd_global.js"
#sed -i 's/https:\/\/gitee.com\/Soundantony\/RandomShareCode\/raw\/master\/JD_Global.json/https:\/\/gitee.com\/l107868382\/randomsharecode\/raw\/master\/v1\/JD_Global.json/g' /jd/scripts/jd_global.js



#echo "开始替换 MyCfd 配置"
#sed -i 's/MyCfd1=""/MyCfd1="35B7923BABD668A695088A165F9ED86483102038068BA4E7584B21224C58E1E7"/g' /jd/config/config.sh
#sed -i 's/MyCfd2=""/MyCfd2="F48439DBCD8B7A6F6FBEB9F371EE82C68FF1E1D96CEAA1C7E24ACDC3497F50B2"/g' /jd/config/config.sh
#sed -i 's/MyCfd3=""/MyCfd3="F409F20CBE5DFD2ACD8AEA50090F2FFE0C88832DC632ACE613D88486675D6975"/g' /jd/config/config.sh
#sed -i 's/MyCfd4=""/MyCfd4="B13701915577B99902E7FEB353A868783F98158AE825030A9C5C1A4B8B818CBD"/g' /jd/config/config.sh
#sed -i 's/MyCfd5=""/MyCfd5="E3C0A27BAF151B53D3826A77E08DE3E57BACDAFD3569FA1A6322D46F4E9F1FBE"/g' /jd/config/config.sh
#sed -i 's/MyCfd6=""/MyCfd6="7D31AF84DD444005DB797B90F2EAA3E9B73D33FADD69A706CA98E2424234B8AC"/g' /jd/config/config.sh


#echo "开始替换 jd_dreamFactory 配置"
#sed -i 's/MyDreamFactory1=""/MyDreamFactory1="bT7WP8TBYl7Zovilq7jO8w=="/g' /jd/config/config.sh
#sed -i 's/MyDreamFactory2=""/MyDreamFactory2="XssabNWf8MEdoB_9MUkAlA=="/g' /jd/config/config.sh
#sed -i 's/MyDreamFactory3=""/MyDreamFactory3="rmW7kHAVZSLlSAhBrLGO7g=="/g' /jd/config/config.sh
#sed -i 's/MyDreamFactory4=""/MyDreamFactory4="Mo72lC_8iRwxPZz9N3bVxw=="/g' /jd/config/config.sh
#sed -i 's/MyDreamFactory5=""/MyDreamFactory5="OyPgoFc41z4o4X5HXw25Kg=="/g' /jd/config/config.sh
#sed -i 's/MyDreamFactory6=""/MyDreamFactory6="hKSvzWp2wB6YlOxqPZrp0g=="/g' /jd/config/config.sh


#echo "替换完成......"

